package com.stylefeng.guns.rest.modular.example;

import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 常规控制器
 *
 * @author fengshuonan
 * @date 2017-08-23 16:02
 */
@Controller
@RequestMapping("/test")
public class TestController {

    @RequestMapping("/hello")
    @ResponseBody
    public ResponseEntity hello() {
//        System.out.println(requestDto.username);
//        System.out.println(requestDto.getUrl());
        return ResponseEntity.ok("请求成功!");
    }
}
